package lzzy.demo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;



@Component
//@PropertySource("classpath:test.properties")
@ConfigurationProperties(prefix="test")
@Data
public class Myproperties{
    private int id;
    private String name;
}

